const mongoose = require("mongoose");
const Schema = mongoose.Schema;

const FileDataSchema = mongoose.Schema({
  // 图片文件
  image: {
    type: Array,
    required: true,
  },
  // 视频文件
  video: {
    type: Array,
    required: true,
  },
  // 录音文件
  soundfile: {
    type: Array,
    required: true,
  },
});

const FileData = mongoose.model("FileData", FileDataSchema);
module.exports = FileData;
